import processing.core.PApplet;


public class Population extends Icon {
	
	private float size;			//Size of ellipse based on total population
	private float population;	//Total Population
	private String city;		//City name

	public Population(float _x, float _y, float pop, String s) {
		x = _x;
		y = _y;
		
		population = pop;
		city = s;
	
		width = PApplet.map(population, 5, 9569624, 2, 65);
		
	}
	
	public void draw() {
		GLOBAL.processing.noStroke();
		GLOBAL.processing.fill(GLOBAL.colorPopulation, GLOBAL.alpha_pop);
		GLOBAL.processing.ellipse(x, y, width*(GLOBAL.THE_MAP.map.getZoomLevel()-2), width*(GLOBAL.THE_MAP.map.getZoomLevel()-2));
	}
	
}
